import config from 'config'
import httpFetch from 'share/httpFetch'

export default{

  send(code){
    let params = {
      code,
      operate: 'SEND'
    };
    return httpFetch.post(`${config.baseUrl}/api/audit/scancode`, params)
  },
  // 扫码寄单历史
  getData(params) {
    return httpFetch.get(`${config.baseUrl}/api/expense/report/audit/scan/history`, params)
  },
  // 导出扫码寄单历史
  exportData(params) {
    return httpFetch.get(`${config.baseUrl}/api/expense/report/audit/scan/history/export`, params, {}, {responseType: 'arraybuffer'})
  }
}
